package com.shopping.pojo;

import javax.validation.constraints.Size;
import java.util.Arrays;

public class User {

    int id;
    String avatar;
    int level;
    @Size(max = 14, min = 4)
    String nickName;
    @Size(max = 128)
    String openid;

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public int getId() {
        return id;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", avatar='" + avatar + '\'' +
                ", level=" + level +
                ", nickName='" + nickName + '\'' +
                ", openid='" + openid + '\'' +
                '}';
    }
}
